package org.jeecg.modules.sggg.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.sggg.entity.SgDecisionRecord;
import org.jeecg.modules.sggg.mapper.SgDecisionRecordMapper;
import org.jeecg.modules.sggg.service.ISgDecisionRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description: 判定记录表
 * @Author: jeecg-boot
 * @Date: 2022-10-26
 * @Version: V1.0
 */
@Service
public class SgDecisionRecordServiceImpl extends ServiceImpl<SgDecisionRecordMapper, SgDecisionRecord> implements ISgDecisionRecordService {

    @Autowired
    private SgDecisionRecordMapper mapper;

    @Override
    public Page<SgDecisionRecord> pageList(Page<SgDecisionRecord> page, SgDecisionRecord decisionRecord, String userId, String ruleCode, String orgCode) {
        return mapper.pageList(page, decisionRecord.getUserName(), decisionRecord.getPhone(), decisionRecord.getResponsibleAgencies(),decisionRecord.getIdCard(), userId, ruleCode, orgCode);
    }
}
